function img = NormaliseImage2(img)
%% Simple normalisation of N-dimensional image
%  
%
%   - Michael Eager,   (michael.eager@monash.edu) 
%   - (c) 2012, Monash Biomedical Imaging, Monash University, Australia


  min_image = min(img(:));
  max_image = max(img(:));

% TODO :  make the process more effieicent - do we need to create another img

if min_image ~= 0 || max_image ~= 1
  img = (img - min_image)./(max_image - min_image);
end
